package com.example.service.impl;

import com.example.dao.MenuDao;
import com.example.pojo.Menu;
import com.example.service.MenuService;

public class MenuServiceImpl extends BaseImpl<MenuDao> implements MenuService {
    @Override
    public int add(Menu entity) {
        return mapper.add(entity);
    }

    @Override
    public void delete(int id) {
        mapper.deleteById(id);
    }

    @Override
    public void update(Menu entity) {
        mapper.updateById(entity);
    }

    @Override
    public Menu find(int id) {
        return mapper.findById(id);
    }
}
